package com.rp.quartz;

import java.util.List;

import net.sf.json.JSONArray;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import com.rp.common.utils.RpUtil;

public class SimpleJob extends JobExpand implements Job {

	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		this.updateTask(context);
		
		Page<Record> jfinalPage = Db.use("rpDb")
				.paginate(1, 5, "select *", 
						"from rp_system_messages m ");
		System.out.println(jfinalPage.getList().size());
	}
	
}
